package com.tangtang.core.hash;

/**
 * @author Administrator
 */
public class ConsistentHashUtil {

    /**
     * hash 算法
     *
     * @param data
     * @return
     */
    public static int calculate(String data) {
        return MurmurHash3.murmurhash3_x86_32(data, 0, data.length(), 0x1234ABCD);
        // return FNVHash.Hash(data);
    }

}

